How to check current URL inside @if statement in Laravel

119

How to check current URL inside @if statement in Laravel -

@if (request()->is('admin/myRoute'))
[do stuff]
@endif

Comments

Submit
0 Comments